import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import './registerServiceWorker'
import http from '@/utils/request'
import { Button, NavBar, Cell, CellGroup, Tab, Tabs, Toast, NumberKeyboard,
  Tag, IndexBar, IndexAnchor, Skeleton, Icon, Popup, Search, Area, Field,
  Loading, Circle, Dialog, Uploader, Swipe, SwipeItem, NoticeBar, List,
  Sticky, PullRefresh, Lazyload, RadioGroup, Radio } from 'vant'
import '@/assets/scss/aui.scss'
import '@/assets/js/conversion.750.js' // 自适应所有手机屏操作
import VueJsonp from 'vue-jsonp'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'

Vue.use(VueAwesomeSwiper)
Vue.use(VueJsonp)
Vue.use(Button)
  .use(Cell)
  .use(NavBar)
  .use(CellGroup)
  .use(Tab)
  .use(Tabs)
  .use(Toast)
  .use(NumberKeyboard)
  .use(Tag)
  .use(IndexBar)
  .use(IndexAnchor)
  .use(Skeleton)
  .use(Icon)
  .use(Popup)
  .use(Search)
  .use(Area)
  .use(Field)
  .use(Loading)
  .use(Circle)
  .use(Dialog)
  .use(Uploader)
  .use(Swipe)
  .use(SwipeItem)
  .use(NoticeBar)
  .use(List)
  .use(Sticky)
  .use(PullRefresh)
  .use(Lazyload)
  .use(RadioGroup)
  .use(Radio)

// 挂载全局
Vue.prototype.$http = http
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
